package io.renren.system.sys.dto;

import io.renren.common.validator.group.DefaultGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;


/**
 * 地区区域表
 */
@Data
@ApiModel(value = "地区区域表")
public class SysRegionDTO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;

    @ApiModelProperty(value = "区域标识(区划代码)")
    @NotNull(message = "{id.require}", groups = DefaultGroup.class)
    private String regionid;

    @ApiModelProperty(value = "区域排序")
    private String regionseq;

    @ApiModelProperty(value = "区域名称(区划名称)")
    @NotBlank(message = "{region.name.require}", groups = DefaultGroup.class)
    private String regname;

    @ApiModelProperty(value = "有无子级(0-有;1-无)")
    private Integer hashchildarea;

    @ApiModelProperty(value = "有无村组(0-有;1-无)")
    private Integer hashchildgroup;

    @ApiModelProperty(value = "创建者")
    private Long creator;

    @ApiModelProperty(value = "创建时间")
    private Date createDate;

    @ApiModelProperty(value = "上级区域编号")
    private String parentRegionId;

    @ApiModelProperty(value = "是否有子节点")
    private Boolean hasChildren;
}